<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>123</title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<cpn>
				<span slot="center">标题1</span>
			</cpn>
			<cpn>
				<button slot="left">按钮</button>
			</cpn>
		</div>
		<template id="cpn">
			<div>
				<div>组件是我</div>
				<slot name="left">左边</slot>
				<slot name="center">中间</slot>
				<slot name="right">右边</slot>
				<slot></slot>
			</div>
		</template>
	</body>
	<script type="text/javascript">
		const app = new Vue({
			el:'#app',
			data:{
				message:'你好'
			},
			components:{
				cpn:{
					template:'#cpn',
				}
			}
		})
	</script>
</html>
